require.config({
	urlArgs 	: 	''+new Date().getTime() ,
	baseUrl 	: 	'/' ,
	paths 		: 	{
		//angularjs
		angular 	: 	'assets/lib/angular/angular.min' ,
		uiRouter 	: 	'assets/lib/angular/angular-ui-router' ,
		//jquery
		jquery 		: 	'assets/lib/jquery/jquery.min' ,
		cookie 		: 	'assets/lib/jquery/jquery.cookie' ,
		nicescroll 	: 	'assets/lib/jquery/jquery.nicescroll' ,
		jqueryui 	: 	'assets/lib/jquery/jquery-ui-1.9.2.custom.min' ,
		//bootstrap
		bootstrap 	: 	'assets/lib/bootstrap/js/bootstrap.min' ,

		niceScroll 	: 	'assets/lib/jquery/jquery.nicescroll' ,
		//validation
		validation 	: 	'assets/lib/validation/jquery.validate.min' ,
		messages 	: 	'assets/lib/validation/localization/messages_zh' ,
		//charts
		highcharts 	: 	'assets/lib/chart/highcharts' ,
		
		config 		: 	'assets/js/config' ,
		views 		: 	'views' ,
		app 		: 	'assets/js/scripts' ,
		//modules 
		module 		: 	'assets/modules' ,
		//exts 
		ngExt 		: 	'assets/js/ng-ext' ,
		validationExt : 'assets/js/validation-ext' ,
		util 		: 	'assets/js/util' ,
		ajaxExt 	: 	'assets/js/ajaxExtend' ,
		appCtrl 	: 	'assets/js/AppCtrl' ,
		routerPath 	: 	'assets/js/routerPath' ,

		//datatable
		'datatables.net' 	: 	'assets/lib/datatable/datatables.min' ,
		fixColumn 	: 	'assets/lib/datatable/dataTables.fixedColumns.min' ,

		//ztree
		ztree 		: 	'assets/lib/ztree/js/jquery.ztree.all'
	},
	shim 		: 	{
		uiRouter 	: 	{
			deps 	: 	['angular']
		},
		cookie 		: 	{
			deps 	: 	['jquery']
		},
		validation 	: 	{
			deps 	: 	['jquery']
		},
		validationExt: {
			deps 	: 	['jquery','validation']
		} ,
		messages 	: 	{
			deps 	: 	['validation']
		},
		ngExt 		: 	{
			deps 	: 	['angular']
		},
		views 		: 	{
			deps 	: 	['jquery','validation','messages']
		},
		nicescroll 	: 	{
			deps 	: 	['jquery']
		},
		app 		: 	{
			deps 	: 	['jquery','nicescroll']
		},
		util 		: 	{
			deps 	: 	['jquery','angular']
		},
		jqueryui 	: 	{
			deps 	: 	['jquery']
		},
		'datatables.net' 	: 	{
			deps 	: 	['jquery']
		},
		fixColumn 	: 	{
			deps 	: 	['datatables.net','jquery']
		},
		ztree 		: 	{
			deps 	: 	['jquery']
		},
		bootstrap 	: 	{
			deps 	: 	['jquery']
		}
	},
	waitSeconds 	: 	10
});
require(['jquery','jqueryui','angular', 'nicescroll' , 'app' ,'validation','messages','cookie','ngExt' , 'util' ,
         'validationExt' ,'uiRouter','highcharts' , 'config' , 'bootstrap' ] , function(){
	angular.bootstrap(document , ['app']) ;
	require(['module/ng-datatable/script' , 'module/ng-data-input/script' , 'module/ng-select/script' ]) ; 
});